import shopapi from '../../utils/request.js'
export function typeList(id){
    return shopapi({
        url:"/wx/catalog/index",
        method:"GET",
        params:{
            id:id
        }
    })
}

export function goodsCat(id){
    return shopapi({
        url:"/wx/goods/category",
        method:"GET",
        params:{
            id:id
        }
    })
}

export function gList(id,page,limit){
    return shopapi({
        url:"/wx/goods/list",
        method:"GET",
        params:{
            categoryId:id,
            page:page,
            limit:limit
        }
    })
}